set (DEMO sdtd)

aux_source_directory($CMAKE_CURRENT_SOURCE_DIR)/src DIR_SRC

link_directories(${LIBS})

## static
add_library(${DEMO} STATIC ${DIR_SRC})

## shared
add_library(${DEMO} SHARED ${DIR_SRC})

target_link_libraries(${DEMO} vshell utils zlog)

## 设置库生成的路径
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIRA}/libs_linux)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIRA}/libs_windows)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIRA}/libs_windows)k

target_include_diretories(${DEMO} PRIVATE ${INC_DIR} ${INC_DIR_IN})
target_link_libraries(${DEMO} zlog)
